import type { RoleData } from "../user/type";

export interface RoleListResponseData{
    code: number,
    message: string,
    data: {
        records: RoleData[],
        total: number,
        size: number,
        current: number,
        orders: [],
        optimizeCountSql: boolean,
        hitCount: boolean,
        countId: null,
        maxLimit: null,
        searchCount: boolean,
        pages: number
    }
    ok: boolean
}
export interface PermissionListData{
    id: number,
    createTime: string,
    updateTime: string,
    pid: number,
    name: string,
    code: string,
    tocode: string,
    type: number,
    status: number,
    level: number,
    children?: PermissionListData[],
    select: boolean
}
export interface PermissionListResponseData{
    code: number,
    message: string,
    data: PermissionListData[]
    ok: boolean
}

